package com.k.kc.util.date.model;

public class RiLiNode {
    private Integer year;
    private Integer month;
    private Integer day;
    private Integer week;

    public RiLiNode(Integer year, Integer month, Integer day, Integer week) {
        this.year = year;
        this.month = month;
        this.day = day;
        this.week = week;
    }

    public Integer getYear() {
        return year;
    }

    public void setYear(Integer year) {
        this.year = year;
    }

    public Integer getMonth() {
        return month;
    }

    public void setMonth(Integer month) {
        this.month = month;
    }

    public Integer getDay() {
        return day;
    }

    public void setDay(Integer day) {
        this.day = day;
    }

    public Integer getWeek() {
        return week;
    }

    public void setWeek(Integer week) {
        this.week = week;
    }
    public static RiLiNodeBuilder newBuilder(){
        return new RiLiNodeBuilder();
    }
    public static class RiLiNodeBuilder{
        private Integer year;
        private Integer month;
        private Integer day;
        private Integer week;

        public RiLiNodeBuilder setYear(Integer year) {
            this.year = year;
            return this;
        }

        public RiLiNodeBuilder setMonth(Integer month) {
            this.month = month;
            return this;
        }

        public RiLiNodeBuilder setDay(Integer day) {
            this.day = day;
            return this;
        }

        public RiLiNodeBuilder setWeek(Integer week) {
            this.week = week;
            return this;
        }

        public RiLiNode build(){
            return new RiLiNode(this.year,this.month,this.day,this.week);
        }
    }

    @Override
    public String toString() {
        return "RiLiNode{" +
                "year=" + year +
                ", month=" + month +
                ", day=" + day +
                ", week=" + week +
                '}';
    }
}
